package pl.veneo.wigprofit.ctrl.events {
	import flash.events.Event;

	/**
	 * @author Tomasz Swierszcz, fiodorkrk@gmail.com
	 */
	public class ChartResizeEvent extends Event {
		
		public static var ON_CHART_RESIZE: String = "on_chart_resize";
		public static var ON_CHART_SLIDE: String = "on_chart_slide";
		public static var ON_RESET_ZOOM: String = "on_reset_zoom";
		
		private var _start : Date;
		private var _end : Date;
		private var _force : Boolean;

		public function ChartResizeEvent(type : String, start : Date = null, end : Date = null, force : Boolean = false) {
			_force = force;
			super(type);
			_end = end;
			_start = start;
		}

		public function get start() : Date {
			return _start;
		}

		public function get end() : Date {
			return _end;
		}

		public function get force() : Boolean {
			return _force;
		}
	}
}
